using Google.ProtocolBuffers;
using Google.ProtocolBuffers.Collections;
using micromsg.Proto;
using System;
using System.CodeDom.Compiler;
using System.Collections.Generic;
using System.Diagnostics;
using System.IO;
using System.Runtime.CompilerServices;
namespace micromsg
{
	[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
	public sealed class SendInviteEmailRequest : GeneratedMessageLite<SendInviteEmailRequest, SendInviteEmailRequest.Builder>
	{
		[GeneratedCode("ProtoGen", "2.3.0.277"), DebuggerNonUserCode, CompilerGenerated]
		public sealed class Builder : GeneratedBuilderLite<SendInviteEmailRequest, SendInviteEmailRequest.Builder>
		{
			private bool resultIsReadOnly;
			private SendInviteEmailRequest result;
			protected override SendInviteEmailRequest.Builder ThisBuilder
			{
				get
				{
					return this;
				}
			}
			public override bool IsInitialized
			{
				get
				{
					return this.result.IsInitialized;
				}
			}
			protected override SendInviteEmailRequest MessageBeingBuilt
			{
				get
				{
					return this.PrepareBuilder();
				}
			}
			public override SendInviteEmailRequest DefaultInstanceForType
			{
				get
				{
					return SendInviteEmailRequest.DefaultInstance;
				}
			}
			public BaseRequest BaseRequest
			{
				get
				{
					return this.result.BaseRequest;
				}
				set
				{
					this.SetBaseRequest(value);
				}
			}
			public uint UinCount
			{
				get
				{
					return this.result.UinCount;
				}
				set
				{
					this.SetUinCount(value);
				}
			}
			public IPopsicleList<uint> UinListList
			{
				get
				{
					return this.PrepareBuilder().uinList_;
				}
			}
			public int UinListCount
			{
				get
				{
					return this.result.UinListCount;
				}
			}
			public Builder()
			{
				this.result = SendInviteEmailRequest.DefaultInstance;
				this.resultIsReadOnly = true;
			}
			internal Builder(SendInviteEmailRequest cloneFrom)
			{
				this.result = cloneFrom;
				this.resultIsReadOnly = true;
			}
			private SendInviteEmailRequest PrepareBuilder()
			{
				if (this.resultIsReadOnly)
				{
					SendInviteEmailRequest other = this.result;
					this.result = new SendInviteEmailRequest();
					this.resultIsReadOnly = false;
					this.MergeFrom(other);
				}
				return this.result;
			}
			public override SendInviteEmailRequest.Builder Clear()
			{
				this.result = SendInviteEmailRequest.DefaultInstance;
				this.resultIsReadOnly = true;
				return this;
			}
			public override SendInviteEmailRequest.Builder Clone()
			{
				if (this.resultIsReadOnly)
				{
					return new SendInviteEmailRequest.Builder(this.result);
				}
				return new SendInviteEmailRequest.Builder().MergeFrom(this.result);
			}
			public override SendInviteEmailRequest BuildPartial()
			{
				if (this.resultIsReadOnly)
				{
					return this.result;
				}
				this.resultIsReadOnly = true;
				return this.result.MakeReadOnly();
			}
			public override SendInviteEmailRequest.Builder MergeFrom(IMessageLite other)
			{
				if (other is SendInviteEmailRequest)
				{
					return this.MergeFrom((SendInviteEmailRequest)other);
				}
				base.MergeFrom(other);
				return this;
			}
			public override SendInviteEmailRequest.Builder MergeFrom(SendInviteEmailRequest other)
			{
				return this;
			}
			public override SendInviteEmailRequest.Builder MergeFrom(ICodedInputStream input)
			{
				return this.MergeFrom(input, ExtensionRegistry.Empty);
			}
			public override SendInviteEmailRequest.Builder MergeFrom(ICodedInputStream input, ExtensionRegistry extensionRegistry)
			{
				this.PrepareBuilder();
				uint num;
				string text;
				while (input.ReadTag(out num, out text))
				{
					if (num == 0u && text != null)
					{
						int num2 = Array.BinarySearch<string>(SendInviteEmailRequest._sendInviteEmailRequestFieldNames, text, StringComparer.get_Ordinal());
						if (num2 < 0)
						{
							this.ParseUnknownField(input, extensionRegistry, num, text);
							continue;
						}
						num = SendInviteEmailRequest._sendInviteEmailRequestFieldTags[num2];
					}
					uint num3 = num;
					if (num3 <= 10u)
					{
						if (num3 == 0u)
						{
							throw InvalidProtocolBufferException.InvalidTag();
						}
						if (num3 == 10u)
						{
							BaseRequest.Builder builder = BaseRequest.CreateBuilder();
							if (this.result.hasBaseRequest)
							{
								builder.MergeFrom(this.BaseRequest);
							}
							input.ReadMessage(builder, extensionRegistry);
							this.BaseRequest = builder.BuildPartial();
							continue;
						}
					}
					else
					{
						if (num3 == 16u)
						{
							this.result.hasUinCount = input.ReadUInt32(ref this.result.uinCount_);
							continue;
						}
						switch (num3)
						{
						case 24u:
						case 26u:
							input.ReadUInt32Array(num, text, this.result.uinList_);
							continue;
						}
					}
					if (WireFormat.IsEndGroupTag(num))
					{
						return this;
					}
					this.ParseUnknownField(input, extensionRegistry, num, text);
				}
				return this;
			}
			public SendInviteEmailRequest.Builder SetBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = value;
				return this;
			}
			public SendInviteEmailRequest.Builder SetBaseRequest(BaseRequest.Builder builderForValue)
			{
				ThrowHelper.ThrowIfNull(builderForValue, "builderForValue");
				this.PrepareBuilder();
				this.result.hasBaseRequest = true;
				this.result.baseRequest_ = builderForValue.Build();
				return this;
			}
			public SendInviteEmailRequest.Builder MergeBaseRequest(BaseRequest value)
			{
				ThrowHelper.ThrowIfNull(value, "value");
				this.PrepareBuilder();
				if (this.result.hasBaseRequest && this.result.baseRequest_ != BaseRequest.DefaultInstance)
				{
					this.result.baseRequest_ = BaseRequest.CreateBuilder(this.result.baseRequest_).MergeFrom(value).BuildPartial();
				}
				else
				{
					this.result.baseRequest_ = value;
				}
				this.result.hasBaseRequest = true;
				return this;
			}
			public SendInviteEmailRequest.Builder ClearBaseRequest()
			{
				this.PrepareBuilder();
				this.result.hasBaseRequest = false;
				this.result.baseRequest_ = null;
				return this;
			}
			public SendInviteEmailRequest.Builder SetUinCount(uint value)
			{
				this.PrepareBuilder();
				this.result.hasUinCount = true;
				this.result.uinCount_ = value;
				return this;
			}
			public SendInviteEmailRequest.Builder ClearUinCount()
			{
				this.PrepareBuilder();
				this.result.hasUinCount = false;
				this.result.uinCount_ = 0u;
				return this;
			}
			public uint GetUinList(int index)
			{
				return this.result.GetUinList(index);
			}
			public SendInviteEmailRequest.Builder SetUinList(int index, uint value)
			{
				this.PrepareBuilder();
				this.result.uinList_[index] = value;
				return this;
			}
			public SendInviteEmailRequest.Builder AddUinList(uint value)
			{
				this.PrepareBuilder();
				this.result.uinList_.Add(value);
				return this;
			}
			public SendInviteEmailRequest.Builder AddRangeUinList(IEnumerable<uint> values)
			{
				this.PrepareBuilder();
				this.result.uinList_.Add(values);
				return this;
			}
			public SendInviteEmailRequest.Builder ClearUinList()
			{
				this.PrepareBuilder();
				this.result.uinList_.Clear();
				return this;
			}
		}
		public const int BaseRequestFieldNumber = 1;
		public const int UinCountFieldNumber = 2;
		public const int UinListFieldNumber = 3;
		private static readonly SendInviteEmailRequest defaultInstance;
		private static readonly string[] _sendInviteEmailRequestFieldNames;
		private static readonly uint[] _sendInviteEmailRequestFieldTags;
		private bool hasBaseRequest;
		private BaseRequest baseRequest_;
		private bool hasUinCount;
		private uint uinCount_;
		private int uinListMemoizedSerializedSize;
		private PopsicleList<uint> uinList_ = new PopsicleList<uint>();
		private int memoizedSerializedSize = -1;
		public static SendInviteEmailRequest DefaultInstance
		{
			get
			{
				return SendInviteEmailRequest.defaultInstance;
			}
		}
		public override SendInviteEmailRequest DefaultInstanceForType
		{
			get
			{
				return SendInviteEmailRequest.DefaultInstance;
			}
		}
		protected override SendInviteEmailRequest ThisMessage
		{
			get
			{
				return this;
			}
		}
		public BaseRequest BaseRequest
		{
			get
			{
				return this.baseRequest_ ?? BaseRequest.DefaultInstance;
			}
		}
		public uint UinCount
		{
			get
			{
				return this.uinCount_;
			}
		}
		public IList<uint> UinListList
		{
			get
			{
				return Lists.AsReadOnly<uint>(this.uinList_);
			}
		}
		public int UinListCount
		{
			get
			{
				return this.uinList_.Count;
			}
		}
		public override bool IsInitialized
		{
			get
			{
				return this.hasBaseRequest && this.hasUinCount && this.BaseRequest.IsInitialized;
			}
		}
		public override int SerializedSize
		{
			get
			{
				int num = this.memoizedSerializedSize;
				if (num != -1)
				{
					return num;
				}
				num = 0;
				if (this.hasBaseRequest)
				{
					num += CodedOutputStream.ComputeMessageSize(1, this.BaseRequest);
				}
				if (this.hasUinCount)
				{
					num += CodedOutputStream.ComputeUInt32Size(2, this.UinCount);
				}
				int num2 = 0;
				using (IEnumerator<uint> enumerator = this.UinListList.GetEnumerator())
				{
					while (enumerator.MoveNext())
					{
						uint current = enumerator.get_Current();
						num2 += CodedOutputStream.ComputeUInt32SizeNoTag(current);
					}
				}
				num += num2;
				if (this.uinList_.Count != 0)
				{
					num += 1 + CodedOutputStream.ComputeInt32SizeNoTag(num2);
				}
				this.uinListMemoizedSerializedSize = num2;
				this.memoizedSerializedSize = num;
				return num;
			}
		}
		private SendInviteEmailRequest()
		{
		}
		public uint GetUinList(int index)
		{
			return this.uinList_[index];
		}
		public override void WriteTo(ICodedOutputStream output)
		{
			int arg_06_0 = this.SerializedSize;
			string[] sendInviteEmailRequestFieldNames = SendInviteEmailRequest._sendInviteEmailRequestFieldNames;
			if (this.hasBaseRequest)
			{
				output.WriteMessage(1, sendInviteEmailRequestFieldNames[0], this.BaseRequest);
			}
			if (this.hasUinCount)
			{
				output.WriteUInt32(2, sendInviteEmailRequestFieldNames[1], this.UinCount);
			}
			if (this.uinList_.Count > 0)
			{
				output.WritePackedUInt32Array(3, sendInviteEmailRequestFieldNames[2], this.uinListMemoizedSerializedSize, this.uinList_);
			}
		}
		public override int GetHashCode()
		{
			int num = base.GetType().GetHashCode();
			if (this.hasBaseRequest)
			{
				num ^= this.baseRequest_.GetHashCode();
			}
			if (this.hasUinCount)
			{
				num ^= this.uinCount_.GetHashCode();
			}
			using (IEnumerator<uint> enumerator = this.uinList_.GetEnumerator())
			{
				while (enumerator.MoveNext())
				{
					uint current = enumerator.get_Current();
					num ^= current.GetHashCode();
				}
			}
			return num;
		}
		public override bool Equals(object value)
		{
			SendInviteEmailRequest sendInviteEmailRequest = value as SendInviteEmailRequest;
			if (sendInviteEmailRequest == null)
			{
				return false;
			}
			if (this.hasBaseRequest != sendInviteEmailRequest.hasBaseRequest || (this.hasBaseRequest && !this.baseRequest_.Equals(sendInviteEmailRequest.baseRequest_)))
			{
				return false;
			}
			if (this.hasUinCount != sendInviteEmailRequest.hasUinCount || (this.hasUinCount && !this.uinCount_.Equals(sendInviteEmailRequest.uinCount_)))
			{
				return false;
			}
			if (this.uinList_.Count != sendInviteEmailRequest.uinList_.Count)
			{
				return false;
			}
			for (int i = 0; i < this.uinList_.Count; i++)
			{
				if (!this.uinList_[i].Equals(sendInviteEmailRequest.uinList_[i]))
				{
					return false;
				}
			}
			return true;
		}
		public override void PrintTo(TextWriter writer)
		{
			GeneratedMessageLite<SendInviteEmailRequest, SendInviteEmailRequest.Builder>.PrintField("BaseRequest", this.hasBaseRequest, this.baseRequest_, writer);
			GeneratedMessageLite<SendInviteEmailRequest, SendInviteEmailRequest.Builder>.PrintField("UinCount", this.hasUinCount, this.uinCount_, writer);
			GeneratedMessageLite<SendInviteEmailRequest, SendInviteEmailRequest.Builder>.PrintField<uint>("UinList", this.uinList_, writer);
		}
		public static SendInviteEmailRequest ParseFrom(byte[] data)
		{
			return SendInviteEmailRequest.CreateBuilder().MergeFrom(data).BuildParsed();
		}
		private SendInviteEmailRequest MakeReadOnly()
		{
			this.uinList_.MakeReadOnly();
			return this;
		}
		public static SendInviteEmailRequest.Builder CreateBuilder()
		{
			return new SendInviteEmailRequest.Builder();
		}
		public override SendInviteEmailRequest.Builder ToBuilder()
		{
			return SendInviteEmailRequest.CreateBuilder(this);
		}
		public override SendInviteEmailRequest.Builder CreateBuilderForType()
		{
			return new SendInviteEmailRequest.Builder();
		}
		public static SendInviteEmailRequest.Builder CreateBuilder(SendInviteEmailRequest prototype)
		{
			return new SendInviteEmailRequest.Builder(prototype);
		}
		static SendInviteEmailRequest()
		{
			SendInviteEmailRequest.defaultInstance = new SendInviteEmailRequest().MakeReadOnly();
			SendInviteEmailRequest._sendInviteEmailRequestFieldNames = new string[]
			{
				"BaseRequest",
				"UinCount",
				"UinList"
			};
			SendInviteEmailRequest._sendInviteEmailRequestFieldTags = new uint[]
			{
				10u,
				16u,
				26u
			};
			object.ReferenceEquals(micromsg.Proto.SendInviteEmailRequest.Descriptor, null);
		}
	}
}
